//
//  NetworkManager.h
//  CedarFinancePH
//
//  Created by lshenrong on 2018/5/23.
//  Copyright © 2018年 cedarhd. All rights reserved.
//

#import <Foundation/Foundation.h>

typedef NS_OPTIONS(NSUInteger, CedarNetworkReachabilityStatus) {
    CedarNetworkReachabilityStatusNone   =  0,//未知
    CedarNetworkReachabilityStatusWIFI   =  1,//WIFI
    CedarNetworkReachabilityStatusWWAN   =  2,//4G等
    CedarNetworkReachabilityNoneNet =  3, //无网络
    CedarNetworkReachabilityStatusOther =  4 //其它
};



@interface NetworkManager : NSObject

+ (instancetype)shareInstance;

@property (nonatomic,copy) NSString *currentDeviceIP;//是否传输不使用token

/**
 当前网络是否可用
 */
@property(nonatomic,assign) CedarNetworkReachabilityStatus networkReachabilityStatus;


/**
 开启网络
 */
- (void)enableNetwork;

@end
